package com.ease.map.style {
	import com.ease.map.style.AbstractStyle;
	import com.ease.map.style.IStyle;

   /**
    * 线样式类
    */
   public class PolylineStyle extends AbstractStyle {
      /**颜色*/
      public var color:int = 0;
      /**透明度*/
      public var alpha:Number = 1.0;
      /**线宽*/
      public var width:Array = [1];
	  /**虚线样式*/
	  public var dashMode:String;

      public function PolylineStyle() {
         super();
      }

      /**
       * 克隆
       */
      override public function clone():IStyle {
         var s:PolylineStyle = new PolylineStyle();
         s.color = this.color;
         s.width = this.width;
         s.alpha = this.alpha;
		 s.dashMode=this.dashMode;
         return s;
      }

      public static function getDefaultStyle():PolylineStyle {
         var defaultStyle:PolylineStyle = new PolylineStyle();
         defaultStyle.color = 0xFFFFFF;
         defaultStyle.alpha = 1.0;
         defaultStyle.width = [1.0];
         return defaultStyle;
      }

   }
}